Comment: Default Setup Project
 
[DEFINE REGION: Application Updates]
 
 
[END REGION]
 
[DEFINE REGION: Requirements]
 
Get System Setting Windows in 64 bit Mode into CHECKSYSTEM64
if Variable CHECKSYSTEM64 not Equals TRUE
  Set Win32 - Native 32 bit Windows and Windows 32 on Windows 64 (WOW64) - installation mode
else
  Set x64 - Native 64 bit Windows, AMD64 and EM64T Architectures - installation mode
end
Comment: Revit is running
Set Variable REVITEXE to FALSE
Check for Process "Revit.exe", get result into variable REVITEXE
if Variable REVITEXE Equals TRUE
  MessageBox: Installation, Revit is currently running! Close down Revit and restart the installation.
  Terminate Installation
end
Comment: Check if Revit exists
Set Variable DIR_RACx32 to 
Set Variable DIR_RSTx32 to 
Set Variable DIR_RMEx32 to 
Set Variable DIR_ROBx32 to 
 
Set Variable DIR_RACx64 to 
Set Variable DIR_RSTx64 to 
Set Variable DIR_RMEx64 to 
Set Variable DIR_ROBx64 to 
 
Comment: Chinese Simp.
[DEFINE REGION: Chinese Simp.]
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0100-0804-705C0D862004}\InstallLocation into DIR_RACx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0200-0804-705C0D862004}\InstallLocation into DIR_RSTx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0300-0804-705C0D862004}\InstallLocation into DIR_RMEx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0500-0804-705C0D862004}\InstallLocation into DIR_ROBx32
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0110-0804-705C0D862004}\InstallLocation into DIR_RACx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0210-0804-705C0D862004}\InstallLocation into DIR_RSTx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0310-0804-705C0D862004}\InstallLocation into DIR_RMEx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0510-0804-705C0D862004}\InstallLocation into DIR_ROBx64
 
Set Variable REVITAPPS to 0
 
if Variable DIR_RACx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable DIR_RACx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable REVITAPPS Greater Than 0
  GoTo Label: DIR_FOUND
end
 
[END REGION]
 
Comment: Chinese Trad.
[DEFINE REGION: Chinese Trad.]
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0100-0404-705C0D862004}\InstallLocation into DIR_RACx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0200-0404-705C0D862004}\InstallLocation into DIR_RSTx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0300-0404-705C0D862004}\InstallLocation into DIR_RMEx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0500-0404-705C0D862004}\InstallLocation into DIR_ROBx32
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0110-0404-705C0D862004}\InstallLocation into DIR_RACx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0210-0404-705C0D862004}\InstallLocation into DIR_RSTx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0310-0404-705C0D862004}\InstallLocation into DIR_RMEx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0510-0404-705C0D862004}\InstallLocation into DIR_ROBx64
 
Set Variable REVITAPPS to 0
 
if Variable DIR_RACx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable DIR_RACx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable REVITAPPS Greater Than 0
  GoTo Label: DIR_FOUND
end
 
[END REGION]
 
Comment: Czech
[DEFINE REGION: Czech]
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0100-0405-705C0D862004}\InstallLocation into DIR_RACx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0200-0405-705C0D862004}\InstallLocation into DIR_RSTx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0300-0405-705C0D862004}\InstallLocation into DIR_RMEx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0500-0405-705C0D862004}\InstallLocation into DIR_ROBx32
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0110-0405-705C0D862004}\InstallLocation into DIR_RACx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0210-0405-705C0D862004}\InstallLocation into DIR_RSTx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0310-0405-705C0D862004}\InstallLocation into DIR_RMEx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0510-0405-705C0D862004}\InstallLocation into DIR_ROBx64
 
Set Variable REVITAPPS to 0
 
if Variable DIR_RACx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable DIR_RACx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable REVITAPPS Greater Than 0
  GoTo Label: DIR_FOUND
end
 
[END REGION]
 
Comment: German
[DEFINE REGION: German]
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0100-0407-705C0D862004}\InstallLocation into DIR_RACx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0200-0407-705C0D862004}\InstallLocation into DIR_RSTx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0300-0407-705C0D862004}\InstallLocation into DIR_RMEx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0500-0407-705C0D862004}\InstallLocation into DIR_ROBx32
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0110-0407-705C0D862004}\InstallLocation into DIR_RACx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0210-0407-705C0D862004}\InstallLocation into DIR_RSTx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0310-0407-705C0D862004}\InstallLocation into DIR_RMEx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0510-0407-705C0D862004}\InstallLocation into DIR_ROBx64
 
Set Variable REVITAPPS to 0
 
if Variable DIR_RACx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable DIR_RACx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable REVITAPPS Greater Than 0
  GoTo Label: DIR_FOUND
end
 
[END REGION]
 
Comment: English
[DEFINE REGION: English]
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0100-0409-705C0D862004}\InstallLocation into DIR_RACx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0200-0409-705C0D862004}\InstallLocation into DIR_RSTx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0300-0409-705C0D862004}\InstallLocation into DIR_RMEx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0500-0409-705C0D862004}\InstallLocation into DIR_ROBx32
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0110-0409-705C0D862004}\InstallLocation into DIR_RACx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0210-0409-705C0D862004}\InstallLocation into DIR_RSTx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0310-0409-705C0D862004}\InstallLocation into DIR_RMEx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0510-0409-705C0D862004}\InstallLocation into DIR_ROBx64
 
Set Variable REVITAPPS to 0
 
if Variable DIR_RACx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable DIR_RACx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable REVITAPPS Greater Than 0
  GoTo Label: DIR_FOUND
end
 
[END REGION]
 
Comment: Spanish
[DEFINE REGION: Spanish]
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0100-040A-705C0D862004}\InstallLocation into DIR_RACx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0200-040A-705C0D862004}\InstallLocation into DIR_RSTx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0300-040A-705C0D862004}\InstallLocation into DIR_RMEx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0500-040A-705C0D862004}\InstallLocation into DIR_ROBx32
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0110-040A-705C0D862004}\InstallLocation into DIR_RACx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0210-040A-705C0D862004}\InstallLocation into DIR_RSTx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0310-040A-705C0D862004}\InstallLocation into DIR_RMEx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0510-040A-705C0D862004}\InstallLocation into DIR_ROBx64
 
Set Variable REVITAPPS to 0
 
if Variable DIR_RACx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable DIR_RACx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable REVITAPPS Greater Than 0
  GoTo Label: DIR_FOUND
end
 
[END REGION]
 
Comment: French
[DEFINE REGION: French]
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0100-040C-705C0D862004}\InstallLocation into DIR_RACx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0200-040C-705C0D862004}\InstallLocation into DIR_RSTx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0300-040C-705C0D862004}\InstallLocation into DIR_RMEx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0500-040C-705C0D862004}\InstallLocation into DIR_ROBx32
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0110-040C-705C0D862004}\InstallLocation into DIR_RACx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0210-040C-705C0D862004}\InstallLocation into DIR_RSTx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0310-040C-705C0D862004}\InstallLocation into DIR_RMEx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0510-040C-705C0D862004}\InstallLocation into DIR_ROBx64
 
Set Variable REVITAPPS to 0
 
if Variable DIR_RACx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable DIR_RACx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable REVITAPPS Greater Than 0
  GoTo Label: DIR_FOUND
end
 
[END REGION]
 
Comment: Hungarian
[DEFINE REGION: Hungarian]
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0100-040E-705C0D862004}\InstallLocation into DIR_RACx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0200-040E-705C0D862004}\InstallLocation into DIR_RSTx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0300-040E-705C0D862004}\InstallLocation into DIR_RMEx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0500-040E-705C0D862004}\InstallLocation into DIR_ROBx32
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0110-040E-705C0D862004}\InstallLocation into DIR_RACx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0210-040E-705C0D862004}\InstallLocation into DIR_RSTx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0310-040E-705C0D862004}\InstallLocation into DIR_RMEx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0510-040E-705C0D862004}\InstallLocation into DIR_ROBx64
 
Set Variable REVITAPPS to 0
 
if Variable DIR_RACx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable DIR_RACx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable REVITAPPS Greater Than 0
  GoTo Label: DIR_FOUND
end
 
[END REGION]
 
Comment: Italian
[DEFINE REGION: Italian]
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0100-0410-705C0D862004}\InstallLocation into DIR_RACx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0200-0410-705C0D862004}\InstallLocation into DIR_RSTx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0300-0410-705C0D862004}\InstallLocation into DIR_RMEx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0500-0410-705C0D862004}\InstallLocation into DIR_ROBx32
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0110-0410-705C0D862004}\InstallLocation into DIR_RACx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0210-0410-705C0D862004}\InstallLocation into DIR_RSTx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0310-0410-705C0D862004}\InstallLocation into DIR_RMEx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0510-0410-705C0D862004}\InstallLocation into DIR_ROBx64
 
Set Variable REVITAPPS to 0
 
if Variable DIR_RACx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable DIR_RACx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable REVITAPPS Greater Than 0
  GoTo Label: DIR_FOUND
end
 
[END REGION]
 
Comment: Japanese
[DEFINE REGION: Japanese]
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0100-0411-705C0D862004}\InstallLocation into DIR_RACx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0200-0411-705C0D862004}\InstallLocation into DIR_RSTx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0300-0411-705C0D862004}\InstallLocation into DIR_RMEx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0500-0411-705C0D862004}\InstallLocation into DIR_ROBx32
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0110-0411-705C0D862004}\InstallLocation into DIR_RACx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0210-0411-705C0D862004}\InstallLocation into DIR_RSTx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0310-0411-705C0D862004}\InstallLocation into DIR_RMEx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0510-0411-705C0D862004}\InstallLocation into DIR_ROBx64
 
Set Variable REVITAPPS to 0
 
if Variable DIR_RACx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable DIR_RACx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable REVITAPPS Greater Than 0
  GoTo Label: DIR_FOUND
end
 
[END REGION]
 
Comment: Korean
[DEFINE REGION: Korean]
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0100-0412-705C0D862004}\InstallLocation into DIR_RACx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0200-0412-705C0D862004}\InstallLocation into DIR_RSTx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0300-0412-705C0D862004}\InstallLocation into DIR_RMEx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0500-0412-705C0D862004}\InstallLocation into DIR_ROBx32
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0110-0412-705C0D862004}\InstallLocation into DIR_RACx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0210-0412-705C0D862004}\InstallLocation into DIR_RSTx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0310-0412-705C0D862004}\InstallLocation into DIR_RMEx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0510-0412-705C0D862004}\InstallLocation into DIR_ROBx64
 
Set Variable REVITAPPS to 0
 
if Variable DIR_RACx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable DIR_RACx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable REVITAPPS Greater Than 0
  GoTo Label: DIR_FOUND
end
 
[END REGION]
 
Comment: Polish
[DEFINE REGION: Polish]
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0100-0415-705C0D862004}\InstallLocation into DIR_RACx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0200-0415-705C0D862004}\InstallLocation into DIR_RSTx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0300-0415-705C0D862004}\InstallLocation into DIR_RMEx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0500-0415-705C0D862004}\InstallLocation into DIR_ROBx32
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0110-0415-705C0D862004}\InstallLocation into DIR_RACx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0210-0415-705C0D862004}\InstallLocation into DIR_RSTx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0310-0415-705C0D862004}\InstallLocation into DIR_RMEx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0510-0415-705C0D862004}\InstallLocation into DIR_ROBx64
 
Set Variable REVITAPPS to 0
 
if Variable DIR_RACx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable DIR_RACx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable REVITAPPS Greater Than 0
  GoTo Label: DIR_FOUND
end
 
[END REGION]
 
Comment: Portuguese
[DEFINE REGION: Portuguese]
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0100-0416-705C0D862004}\InstallLocation into DIR_RACx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0200-0416-705C0D862004}\InstallLocation into DIR_RSTx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0300-0416-705C0D862004}\InstallLocation into DIR_RMEx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0500-0416-705C0D862004}\InstallLocation into DIR_ROBx32
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0110-0416-705C0D862004}\InstallLocation into DIR_RACx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0210-0416-705C0D862004}\InstallLocation into DIR_RSTx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0310-0416-705C0D862004}\InstallLocation into DIR_RMEx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0510-0416-705C0D862004}\InstallLocation into DIR_ROBx64
 
Set Variable REVITAPPS to 0
 
if Variable DIR_RACx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable DIR_RACx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable REVITAPPS Greater Than 0
  GoTo Label: DIR_FOUND
end
 
[END REGION]
 
Comment: Russian
[DEFINE REGION: Russian]
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0100-0419-705C0D862004}\InstallLocation into DIR_RACx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0200-0419-705C0D862004}\InstallLocation into DIR_RSTx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0300-0419-705C0D862004}\InstallLocation into DIR_RMEx32
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0500-0419-705C0D862004}\InstallLocation into DIR_ROBx32
 
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0110-0419-705C0D862004}\InstallLocation into DIR_RACx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0210-0419-705C0D862004}\InstallLocation into DIR_RSTx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0310-0419-705C0D862004}\InstallLocation into DIR_RMEx64
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7346B4A0-1300-0510-0419-705C0D862004}\InstallLocation into DIR_ROBx64
 
Set Variable REVITAPPS to 0
 
if Variable DIR_RACx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx32 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable DIR_RACx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RSTx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_RMEx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
if Variable DIR_ROBx64 not Equals 
  REVITAPPS = $REVITAPPS$ + 1
end
 
if Variable REVITAPPS Greater Than 0
  GoTo Label: DIR_FOUND
end
 
[END REGION]
 
MessageBox: Installation, No valid Autodesk Revit 2013 installations were found. The installation will terminate!
Terminate Installation
 
label: DIR_FOUND
 
Set Variable ROAMINGFOLDER to 
Get Folder Location System->Application Data Directory into ROAMINGFOLDER
 
Set Variable INIDIR_RAC to $ROAMINGFOLDER$Autodesk\Revit\Autodesk Revit Architecture 2013\
Set Variable INIDIR_RST to $ROAMINGFOLDER$Autodesk\Revit\Autodesk Revit Structure 2013\
Set Variable INIDIR_RME to $ROAMINGFOLDER$Autodesk\Revit\Autodesk Revit MEP 2013\
Set Variable INIDIR_ROB to $ROAMINGFOLDER$Autodesk\Revit\Autodesk Revit 2013\
 
Set Variable DIR_RAC to 
Set Variable DIR_RST to 
Set Variable DIR_RME to 
Set Variable DIR_ROB to 
 
if Variable DIR_RACx32 not Equals 
  Set Variable DIR_RAC to $DIR_RACx32$
end
if Variable DIR_RSTx32 not Equals 
  Set Variable DIR_RST to $DIR_RSTx32$
end
if Variable DIR_RMEx32 not Equals 
  Set Variable DIR_RME to $DIR_RMEx32$
end
if Variable DIR_ROBx32 not Equals 
  Set Variable DIR_ROB to $DIR_ROBx32$
end
if Variable DIR_RACx64 not Equals 
  Set Variable DIR_RAC to $DIR_RACx64$
end
if Variable DIR_RSTx64 not Equals 
  Set Variable DIR_RST to $DIR_RSTx64$
end
if Variable DIR_RMEx64 not Equals 
  Set Variable DIR_RME to $DIR_RMEx64$
end
if Variable DIR_ROBx64 not Equals 
  Set Variable DIR_ROB to $DIR_ROBx64$
end
 
Set Variable METRICLIBRARYDIR_RAC to 
Set Variable METRICLIBRARYDIR_RST to 
Set Variable METRICLIBRARYDIR_RME to 
Set Variable METRICLIBRARYDIR_ROB to 
 
if Variable DIR_RAC not Equals 
  Get INI $INIDIR_RAC$Revit.ini, [Directories] DataLibraryLocations Value into Variable METRICLIBRARYDIR_RAC
end
if Variable DIR_RST not Equals 
  Get INI $INIDIR_RST$Revit.ini, [Directories] DataLibraryLocations Value into Variable METRICLIBRARYDIR_RST
end
if Variable DIR_RME not Equals 
  Get INI $INIDIR_RME$Revit.ini, [Directories] DataLibraryLocations Value into Variable METRICLIBRARYDIR_RME
end
if Variable DIR_ROB not Equals 
  Get INI $INIDIR_ROB$Revit.ini, [Directories] DataLibraryLocations Value into Variable METRICLIBRARYDIR_ROB
end
 
Set Variable LANG to 
Set Variable COMMANDLINE to $CMDLINE$
if Variable COMMANDLINE Contains (Ignore Case) LANG=
  Parse String $COMMANDLINE$ into Variables  and LANG (Split at first occurrence of pattern)
  Parse String $LANG$ into Variables LANG and  (Split at first occurrence of pattern)
else
  Set Variable LANG to ?;
end
 
[END REGION]
 
[DEFINE REGION: Check Application Requirements]
Get System Setting Administrator Rights into CHECKSYSTEM
if Variable CHECKSYSTEM not Equals TRUE
  MessageBox: $TITLE$ Setup Error, This product requires at least Administrator Privileges.$NEWLINE$$NEWLINE$Setup cannot continue.
  Terminate Installation
end
Get System Setting Windows XP into CHECKSYSTEM
if Variable CHECKSYSTEM not Equals TRUE
  MessageBox: $TITLE$ Setup Error, This product requires at least Windows XP.$NEWLINE$$NEWLINE$Setup cannot continue.
  Terminate Installation
end
[END REGION]
 
[DEFINE REGION: Check/Install Application Pre-Requisites]
 
[DEFINE REGION: Check Application Pre-Requisites]
Comment: Check setup pre-requisites
Set Variable PREREQ to FALSE
Set Variable PRELIST to 
[compiler if Variable BUILDMODE not Equals PATCH]
if Variable NEEDSUPGRADE Equals TRUE
  Set Variable PREREQ to TRUE
  Set Variable PRELIST to $PRELIST$$NEWLINE$Previous Version Uninstallation
end
 
[compiler end]
[END REGION]
 
[DEFINE REGION: Install Application Pre-Requisites]
Comment: Install setup pre-requisites
if Variable PREREQ not Equals FALSE
  Display Dialog: prereq, wait for dialog to return (modal)
  if Variable WIZARD Equals CANCEL
    Terminate Installation
  end
  Display Dialog: progressprereq, use as progress dialog (non-modal)
  [compiler if Variable BUILDMODE not Equals PATCH]
  if Variable NEEDSUPGRADE Equals TRUE
    Set Variable REMOVEOLD to 
    Set Variable ERROROLD to 
    Install/Remove MSI Package $PRODUCTCODE$[REMOVE=ALL] (get result into variable REMOVEOLD)
    if Variable REMOVEOLD Equals ERROR
      MessageBox: $TITLE$ Setup, Unable to uninstall old version of $TITLE$. Please uninstall it yourself using Control Panel Add-Remove Programs before attempting to install this product.$NEWLINE$$NEWLINE$$ERROROLD$
      Terminate Installation
    end
    if Variable REMOVEOLD Equals REBOOT
      MessageBox: $TITLE$ Setup, Your computer needs to be restarted before $TITLE$ Setup can continue.$NEWLINE$$NEWLINE$Please save your work in all running programs and click OK to restart your computer. Setup will resume once your computer restarts.$NEWLINE$$NEWLINE$If you click CANCEL, setup will exit. You will have to run setup again at a later time to install $TITLE$.
      if Variable REBOOTNOW Equals OK
        Reboot Computer and Resume Setup
      else
        Terminate Installation
      end
    end
    Set Variable MAINTENANCE to FALSE
  end
   
  [compiler end]
  Hide Dialog
end
[END REGION]
 
[END REGION]
 
[DEFINE REGION: Define Setup Globals]
Comment: Define Setup Components
Define Component: Bulgaria
Define Component: Czech Republic
Define Component: Denmark
Define Component: Finland
Define Component: Great Britain
Define Component: Hungary
Define Component: Norway
Define Component: Poland
Define Component: Romania
Define Component: Russia
Define Component: Slovakia
Define Component: Sweden
Define Component: Other
 
Comment: Initialize Setup Globals
Get System Setting Windows NT Kernel (NT4, 2000, XP, 2003, Vista, 2008, 7, 2008 R2, 8, Server 8) into ISNT
Get Folder Location System->Program Files Directory into PROGRAMFILES
Get Common Folder Location System->Program Files Directory into COMMONFILES
Get Common Folder Location Start Menu->Programs Group into SHORTCUTFILESALL
Get Folder Location Start Menu->Programs Group into SHORTCUTFILES
if Variable SHORTCUTFILESALL Equals 
  Set Variable SHORTCUTFILESALL to $SHORTCUTFILES$
end
Get Folder Location System->Desktop Directory into DESKTOPDIR
Get Folder Location System->Windows Directory into WINDIR
Get Folder Location System->System Directory into WINSYSDIR
Get Folder Location Taskbar->Quick Launch Directory into QUICKLAUNCHDIR
Get Folder Location WWW->WWWRoot into WWWROOTDIR
[END REGION]
 
[DEFINE REGION: Setup User Interview]
if Variable MAINTENANCE Equals TRUE
  GoTo Label: Maintenance
else
  [compiler if Variable BUILDMODE not Equals PATCH]
  Comment: First Time Install
  Set Variable TARGETDIR to $PROGRAMFILES$\Lindab\$TITLE$
  Set Variable STARTMENU to Lindab\$TITLE$
  [compiler end]
end
 
label: Welcome Dialog
Display Dialog: welcome, wait for dialog to return (modal)
if Variable WIZARD Equals CANCEL
  GoTo Label: Main Install
end
[compiler if Variable BUILDMODE not Equals PATCH]
label: License Check
Display Dialog: licensecheck, wait for dialog to return (modal)
if Variable WIZARD Equals BACK
  GoTo Label: Welcome Dialog
else
  if Variable WIZARD Equals CANCEL
    GoTo Label: Main Install
  end
end
label: ReadMe Information
Display Dialog: readme, wait for dialog to return (modal)
if Variable WIZARD Equals BACK
  GoTo Label: License Check
else
  if Variable WIZARD Equals CANCEL
    GoTo Label: Main Install
  end
end
label: User Registration
Display Dialog: registration, wait for dialog to return (modal)
if Variable WIZARD Equals BACK
  GoTo Label: ReadMe Information
else
  if Variable WIZARD Equals CANCEL
    GoTo Label: Main Install
  end
end
Set Variable MINIMUM to TRUE
Set Variable PERSONALIZED to TRUE
label: Setup Type
Display Dialog: setuptype, wait for dialog to return (modal)
if Variable WIZARD Equals BACK
  GoTo Label: User Registration
else
  if Variable WIZARD Equals CANCEL
    GoTo Label: Main Install
  end
end
Comment: TO-DO: Customize your minimum setup here
if Variable MINIMUM Equals TRUE
  Deselect Component: Bulgaria
  Deselect Component: Czech Republic
  Deselect Component: Denmark
  Deselect Component: Finland
  Deselect Component: Great Britain
  Deselect Component: Hungary
  Deselect Component: Norway
  Deselect Component: Poland
  Deselect Component: Romania
  Deselect Component: Russia
  Deselect Component: Slovakia
  Deselect Component: Sweden
  Deselect Component: Other
else
  if Variable COMPLETE Equals TRUE
  end
end
 
Set Variable OSLANGUAGE to 
Set Variable OSLANGUAGECOUNTER to 0
Get System Setting Language (Numeric) into OSLANGUAGE
 
Comment: Standard
if Variable LANG Contains (Ignore Case) ?;
   
  Comment: Bulgaria
  if Variable OSLANGUAGE Equals 1026
    Select Component: Bulgaria
  end
   
  Comment: Czech Republic
  if Variable OSLANGUAGE Equals 1029
    Select Component: Czech Republic
  end
   
  Comment: Denmark
  if Variable OSLANGUAGE Equals 1030
    Select Component: Denmark
  end
   
  Comment: Finland
  if Variable OSLANGUAGE Equals 1035
    Select Component: Finland
  end
   
  Comment: Great Britain
  if Variable OSLANGUAGE Equals 2057
    Select Component: Great Britain
  end
   
  Comment: Hungary
  if Variable OSLANGUAGE Equals 1038
    Select Component: Hungary
  end
   
  Comment: Norway
  if Variable OSLANGUAGE Equals 1044
    Select Component: Norway
  end
  if Variable OSLANGUAGE Equals 2068
    Select Component: Norway
  end
   
  Comment: Poland
  if Variable OSLANGUAGE Equals 1045
    Select Component: Poland
  end
   
  Comment: Romania
  if Variable OSLANGUAGE Equals 1048
    Select Component: Romania
  end
   
  Comment: Russia
  if Variable OSLANGUAGE Equals 1049
    Select Component: Russia
  end
   
  Comment: Slovakia
  if Variable OSLANGUAGE Equals 1051
    Select Component: Slovakia
  end
   
  Comment: Sweden
  if Variable OSLANGUAGE Equals 1053
    Select Component: Sweden
  end
   
  Comment: Other
  if Variable LANG Contains (Ignore Case) OT;
    Select Component: Other
  end
   
else
   
  Comment: Bulgaria
  if Variable LANG Contains (Ignore Case) BG;
    Select Component: Bulgaria
    Set Variable OSLANGUAGECOUNTER to 1
  end
   
  Comment: Czech Republic
  if Variable LANG Contains (Ignore Case) CZ;
    Select Component: Czech Republic
    Set Variable OSLANGUAGECOUNTER to 1
  end
   
  Comment: Denmark
  if Variable LANG Contains (Ignore Case) DK;
    Select Component: Denmark
    Set Variable OSLANGUAGECOUNTER to 1
  end
   
  Comment: Finland
  if Variable LANG Contains (Ignore Case) FI;
    Select Component: Finland
    Set Variable OSLANGUAGECOUNTER to 1
  end
   
  Comment: Great Britain
  if Variable LANG Contains (Ignore Case) GB;
    Select Component: Great Britain
    Set Variable OSLANGUAGECOUNTER to 1
  end
   
  Comment: Hungary
  if Variable LANG Contains (Ignore Case) HU;
    Select Component: Hungary
    Set Variable OSLANGUAGECOUNTER to 1
  end
   
  Comment: Norway
  if Variable LANG Contains (Ignore Case) NO;
    Select Component: Norway
    Set Variable OSLANGUAGECOUNTER to 1
  end
   
  Comment: Poland
  if Variable LANG Contains (Ignore Case) PL;
    Select Component: Poland
    Set Variable OSLANGUAGECOUNTER to 1
  end
   
  Comment: Romania
  if Variable LANG Contains (Ignore Case) RO;
    Select Component: Romania
    Set Variable OSLANGUAGECOUNTER to 1
  end
   
  Comment: Russia
  if Variable LANG Contains (Ignore Case) RU;
    Select Component: Russia
    Set Variable OSLANGUAGECOUNTER to 1
  end
   
  Comment: Slovakia
  if Variable LANG Contains (Ignore Case) SK;
    Select Component: Slovakia
    Set Variable OSLANGUAGECOUNTER to 1
  end
   
  Comment: Sweden
  if Variable LANG Contains (Ignore Case) SV;
    Select Component: Sweden
    Set Variable OSLANGUAGECOUNTER to 1
  end
   
  Comment: Other
  if Variable OSLANGUAGECOUNTER Equals 0
    Select Component: Other
  end
   
end
 
 
label: Custom Setup
Display Dialog: componentstree (if variable PERSONALIZED is TRUE), wait for dialog to return (modal)
if Variable WIZARD Equals BACK
  GoTo Label: Setup Type
else
  if Variable WIZARD Equals CANCEL
    GoTo Label: Main Install
  end
end
label: Destination Directory
Display Dialog: destination, wait for dialog to return (modal)
if Variable WIZARD Equals BACK
  GoTo Label: Custom Setup
else
  if Variable WIZARD Equals CANCEL
    GoTo Label: Main Install
  end
end
label: Start Menu
Display Dialog: startmenu, wait for dialog to return (modal)
if Variable WIZARD Equals BACK
  GoTo Label: Destination Directory
else
  if Variable WIZARD Equals CANCEL
    GoTo Label: Main Install
  end
end
[compiler end]
label: Start Installation
Display Dialog: startinstallation, wait for dialog to return (modal)
if Variable WIZARD Equals BACK
  [compiler if Variable BUILDMODE not Equals PATCH]
  GoTo Label: Start Menu
  [compiler else]
  GoTo Label: Welcome Dialog
  [compiler end]
else
  GoTo Label: Main Install
end
 
label: Maintenance
Comment: Maintenance Install/Uninstall
wizard loop
Display Dialog: maintenance, wait for dialog to return (modal)
Display Dialog: componentstree (if variable MODIFY is TRUE), wait for dialog to return (modal)
Display Dialog: startinstallation, wait for dialog to return (modal)
end
[END REGION]
 
[DEFINE REGION: Process (Un)Installation]
label: Main Install
Comment: Exit Setup if Wizard Loop cancelled
if Variable WIZARD Equals CANCEL
  Terminate Installation
end
 
Comment: Prepare to install
Set Variable PROGRESSTEXT to Installing $TITLE$
Set Variable SUCCESS to 
Set Variable LASTERROR to 
if Variable ALLUSERS Equals TRUE
  Set Variable SHORTCUTFOLDER to $SHORTCUTFILESALL$\$STARTMENU$
else
  Set Variable SHORTCUTFOLDER to $SHORTCUTFILES$\$STARTMENU$
end
Display Dialog: progress, use as progress dialog (non-modal)
Comment: Modify Target System
[DEFINE REGION: Perform Uninstallation]
if Variable REMOVE Equals TRUE
  Comment: Uninstall product
   
  if Variable DIR_RAC not Equals 
    if Variable METRICLIBRARYDIR_RAC not Equals 
      if Variable METRICLIBRARYDIR_RAC Contains $TITLE$
        Comment: Edit INI File $INIDIR_RAC$\Revit.ini, [Directories] DataLibraryLocations=LRL 2013=$TARGETDIR$\Families
      end
    end
  end
  if Variable DIR_RST not Equals 
    if Variable METRICLIBRARYDIR_RST not Equals 
      if Variable METRICLIBRARYDIR_RST Contains $TITLE$
        Edit INI File $INIDIR_RST$\Revit.ini, [Directories] DataLibraryLocations=LRL 2013=$TARGETDIR$\Families
      end
    end
  end
  if Variable DIR_RME not Equals 
    if Variable METRICLIBRARYDIR_RME not Equals 
      if Variable METRICLIBRARYDIR_RME Contains $TITLE$
        Edit INI File $INIDIR_RME$\Revit.ini, [Directories] DataLibraryLocations=LRL 2013=$TARGETDIR$\Families
      end
    end
  end
  if Variable DIR_ROB not Equals 
    if Variable METRICLIBRARYDIR_ROB not Equals 
      if Variable METRICLIBRARYDIR_ROB Contains $TITLE$
        Edit INI File $INIDIR_ROB$\Revit.ini, [Directories] DataLibraryLocations=LRL 2013=$TARGETDIR$\Families
      end
    end
  end
   
  Comment: TO-DO: Insert any additional uninstall commands here
  Apply Uninstall (get result into variable SUCCESS)
  Set Variable PROGRESS to 100
else
  [END REGION]
  [DEFINE REGION: Perform First Time or Maintenance Installation]
  Comment: Install/Re-Install product
  [OFFLINE CONTENT]
   
  if Variable DIR_RAC not Equals 
    if Variable METRICLIBRARYDIR_RAC not Equals 
      if Variable METRICLIBRARYDIR_RAC not Contains $TITLE$
        Edit INI File $INIDIR_RAC$\Revit.ini, [Directories] DataLibraryLocations=LRL 2013=$TARGETDIR$\Families
      end
    end
  end
  if Variable DIR_RST not Equals 
    if Variable METRICLIBRARYDIR_RST not Equals 
      if Variable METRICLIBRARYDIR_RST not Contains $TITLE$
        Edit INI File $INIDIR_RST$\Revit.ini, [Directories] DataLibraryLocations=LRL 2013=$TARGETDIR$\Families
      end
    end
  end
  if Variable DIR_RME not Equals 
    if Variable METRICLIBRARYDIR_RME not Equals 
      if Variable METRICLIBRARYDIR_RME not Contains $TITLE$
        Edit INI File $INIDIR_RME$\Revit.ini, [Directories] DataLibraryLocations=LRL 2013=$TARGETDIR$\Families
      end
    end
  end
  if Variable DIR_ROB not Equals 
    if Variable METRICLIBRARYDIR_ROB not Equals 
      if Variable METRICLIBRARYDIR_ROB not Contains $TITLE$
        Edit INI File $INIDIR_ROB$\Revit.ini, [Directories] DataLibraryLocations=LRL 2013=$TARGETDIR$\Families
      end
    end
  end
   
  Comment: TO-DO: Insert any additional install commands here
  [compiler if Variable BUILDMODE Equals PATCH]
  Apply Patch (get result into variable SUCCESS)
  [compiler else]
  if Variable ADVERTISE Equals TRUE
    Apply Advertised (get result into variable SUCCESS)
  else
    Apply Install (get result into variable SUCCESS)
     
  end
  [compiler end]
  Set Variable PROGRESS to 100
end
[END REGION]
[END REGION]
 
[DEFINE REGION: Finish Setup]
Comment: End of Installation
Hide Dialog
Display Dialog: finish, wait for dialog to return (modal)
if Variable SILENT Equals FALSE
  if Variable REBOOTCOMPUTER Equals TRUE
    if Variable SUCCESS Equals REBOOT
      Reboot Computer
    end
  end
  if Variable RUNAPP Equals TRUE
    if Variable REMOVE Equals FALSE
      if Variable SUCCESS Equals COMPLETE
        Comment: TO-DO: Insert command that starts your application here
      end
    end
  end
end
[END REGION]
 
 
 
